<HTML>
<HEAD>
<TITLE>JavaScript Source Code 3000:  Games:  Mad Cows (Source)</TITLE>
<META HTTP-EQUIV="JavaScript Source Code 3000" CONTENT = "no-cache">
<META NAME="date" CONTENT="2000-09-09">
<META NAME="channel" CONTENT="Web Developer">
<META NAME="author" CONTENT="JavaScript Source Code 3000">
<META NAME="section" CONTENT="Games">
<META NAME="description" CONTENT="Play a very humorous game involving three talking cows. Check it out - it's very cool.">
</HEAD>

<BODY BGCOLOR=#ffffff vlink=#0000ff>

<BR>
<center>
<table width="600" cellpadding="0" cellspacing="10">
<tr>
<td width="468" align="center">

	
</td>
<td width="120" align="center">

	
</td>
</tr>
</table>
<BR>
<BR>
<BASEFONT SIZE=3>
  <FONT SIZE=6>
<B><FONT SIZE="+2" FACE="Helvetica,Arial" ALIGN=RIGHT COLOR="#0000FF">
<b><A HREF="../index.htm" /" TARGET="_top">
Home</A> </b><img src="../img/arrow.gif" /img/arrow.gif" height=13 width=7 border=0 alt="}"> <b><A HREF="index.htm" /games/"><font color="#FF0000">Games</font></A> </b>
<img src="../img/arrow.gif" /img/arrow.gif" height=13 width=7 border=0 alt="}"> <FONT COLOR="#006666">Mad Cows (Source)</FONT></b></FONT><BR>
</B><BR>
  </FONT>
<table BORDER=0 WIDTH=486 CELLPADDING=3 CELLSPACING=0>
<tr><td><font FACE="helvetica,arial,geneva">
<br>
<br>
<!-- Description --><!--content_start-->

Play a very humorous game involving three talking cows. Check it out - it's very cool.
<br>
<hr>
</td></tr>
</table>
<!-- Demonstration -->
<BODY>
<center><a href="mad-cows.html" /games/mad-cows.html">See Demonstration</a></center>
<P>
<P>
<a name="source">
<table BORDER=0 WIDTH=486 CELLPADDING=3 CELLSPACING=0>
<tr><td BGCOLOR=yellow><font FACE="helvetica,arial,geneva"><b>JavaScript Source Code 3000:  Games:  Mad Cows (mad-cows.html)</b>
<p>Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s).  The script is yours!!!<br><br></font></td></tr>
<tr><td BGCOLOR=yellow ALIGN=CENTER>
<form NAME="copy1">

<DIV align="center">
<input type=button value="Highlight All" onClick="javascript:this.form.txt.focus();this.form.txt.select();">&nbsp;&nbsp;&nbsp;&nbsp;
<INPUT TYPE="text" NAME="total" VALUE="Script Size:  0.61 KB  " size="24">
</DIV>

<textarea NAME="txt" ROWS=20 COLS=75 WRAP=VIRTUAL>

&lt;!-- FOUR STEPS TO INSTALL MAD COWS:

   1.  Put first coding into a new document, save as mad-cows.html
   2.  Put next coding into a new document, save as mad-cows-top.html
   3.  Put last coding into a new document, save as mad-cows-bottom.html
   4.  Save cow images and upload them to your web site directory  --&gt;

&lt;!-- STEP ONE: Put this coding into a new document, mad-cows.html  --&gt;

&lt;HTML&gt;
&lt;HEAD&gt;
&lt;TITLE&gt;Mad Cows&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;FRAMESET ROWS = "250,*"&gt;
&lt;FRAME SRC = "mad-cows-top.html#top" NAME = "topframe"&gt;
&lt;FRAME SRC = "mad-cows-bottom.html" NAME = "bottomframe"&gt;
&lt;/FRAMESET&gt;
&lt;/HTML&gt;

 

&lt;!-- Script Size:  0.61 KB  --&gt;
</textarea></td></tr></form>

<tr><td BGCOLOR=yellow><font FACE="helvetica,arial,geneva"><b>JavaScript Source Code 3000:  Games:  Mad Cows (mad-cows-top.html)</b></td></tr>
<tr><td BGCOLOR=yellow ALIGN=CENTER>
<form NAME="copy2">

<DIV align="center">
<input type=button value="Highlight All" onClick="javascript:this.form.txt.focus();this.form.txt.select();">&nbsp;&nbsp;&nbsp;&nbsp;
<INPUT TYPE="text" NAME="total" VALUE="Script Size:  5.02 KB  " size="24">
</DIV>

<textarea NAME="txt" ROWS=20 COLS=75 WRAP=VIRTUAL>

&lt;!-- FOUR STEPS TO INSTALL MAD COWS:

   1.  Put first coding into a new document, save as mad-cows.html
   2.  Put next coding into a new document, save as mad-cows-top.html
   3.  Put last coding into a new document, save as mad-cows-bottom.html
   4.  Save cow images and upload them to your web site directory  --&gt;

&lt;!-- STEP TWO: Put next coding into a new document, mad-cows-top.html  --&gt;

&lt;HTML&gt;
&lt;HEAD&gt;
&lt;TITLE&gt;Mad Cows&lt;/TITLE&gt;

&lt;SCRIPT LANGUAGE="JavaScript"&gt;
&lt;!-- Begin
last_cow = "none - nobody's spoken yet";
output = "nothing yet too "
function makearray (x) {
this.length = x
for (var i=1; i&lt;= x; i += 1){
this[i] = 0;
   }
}
cowa = new makearray (7);
cowb = new makearray (12);
cowc = new makearray (8);
alastsaid = 0;
blastsaid = 0;
clastsaid = 0;
var pageloaded = false;
function speak(id,thecow,arrayel){
if (pageloaded == false) {
return;
}
if (last_cow == id) {
return;
}
arrayel += 1;
if (arrayel &gt; thecow.length) {
arrayel = 1;
}
output = thecow[arrayel];
last_cow = id;
if (id == "aaaa") {
alastsaid = arrayel;
}
if (id == "bbbb") {
blastsaid = arrayel;
}
if (id == "cccc") {
clastsaid = arrayel;
}
window.parent.frames[1].document.open();
window.parent.frames[1].document.write('&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY BGCOLOR="#000000" TEXT="#AAAACC"&gt;&lt;CENTER&gt;&lt;H3&gt;"');
window.parent.frames[1].document.write(output);
window.parent.frames[1].document.write('&lt;/CENTER&gt;&lt;/BODY&gt;&lt;HTML&gt;');
window.parent.frames[1].document.close();
return;
}
function hereweare() {
pageloaded = true;
window.parent.frames[1].document.open();
window.parent.frames[1].document.write('&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY BGCOLOR="#000000" TEXT="#AAAACC"&gt;&lt;H3&gt;&lt;CENTER&gt;');
window.parent.frames[1].document.write('"We\'re all here !  &lt;BR&gt; Place your mouse over us for &lt;BR&gt; incredibly intelligent dialog."');
window.parent.frames[1].document.write('&lt;/CENTER&gt;&lt;/H3&gt;&lt;/BODY&gt;&lt;HTML&gt;');
window.parent.frames[1].document.close();
return;
}
cowa[1] = "What do you make of this mad cow's thing ?";
cowa[2] = "It will all blow over... then they will eat us again. &lt;BR&gt; People have already started to forget about it."
cowa[3] = "Remember the salmonella scare 6 years ago and people stopped &lt;BR&gt;eating eggs, even though they had eaten them all their lives ?&lt;BR&gt; Look how long that lasted.";
cowa[4] = "It's all about economics and politics ....&lt;BR&gt; and us poor cows are the victims.";
cowa[5] = "Anyway, what evidence do they have ?&lt;P&gt;Who is to say if we are crazy ?  &lt;P&gt;Is there a special cow psychiatrist ?";
cowa[6] = "Oh dear - it's time for me to go have my nipples squeezed by some machine.";
cowa[7] = "The things we do - we give them milk day in day out&lt;BR&gt;... and then they slaughter us.";
cowb[1] = "It's all  a load of bull if you ask me.";
cowb[2] = "By the way, my name is Gertrude -&lt;BR&gt; all cows seem to be called this for some reason.";
cowb[3] = "I think my neighbour's had a bit too much weed.&lt;P&gt;  Oi, try the grass.";
cowb[4] = "I'm starving : I could eat a horse.  &lt;BR&gt;Never mind, I'll settle for a beefburger.";
cowb[5] = "OK, whose cowpat did I just step in ? &lt;BR&gt;I thought we all agreed to do it in the chicken shed.";
cowb[6] = "Cows know best when it comes to predicting the weather : &lt;P&gt;for example, you can expect increasing darkness tonight with &lt;BR&gt;it brightening up towards the morning.";
cowb[7] = "Hey, it could be worse : you could be this old and still a virgin.";
cowb[8] = "... and I thought I disappointed my father ? ";
cowb[9] = "Roger me relentlessly with a red hot ramrod ....&lt;BR&gt; is that what they call alliteration ?";
cowb[10] = "Windows 95 was worse than being artificially inseminated ...&lt;BR&gt; and we should know.";
cowb[11] = "Hey, don't miss Bill and Marc's excellent chat show -&lt;BR&gt; though we think they are less intelligent&lt;BR&gt; than us.  The world seems to agree.";
cowb[12] = "Bet this webpage really enriched your life, didn't it ? &lt;P&gt; Dont forget to Mail the webmaster and let him know you liked this !";
cowc[1] = "Oink oink oink, oink, oink, oink ";
cowc[2] = "No tengo dinero pero ....&lt;BR&gt; Vamos a la playa, oh, oh, oh, oh,!";
cowc[3] = "Hey ... who are YOU calling mad buddy ?&lt;BR&gt;  Look in a mirror first.";
cowc[4] = "Eh man, pass  it round, you know what I'm saying ?";
cowc[5] = "Oops upside my head , I said ooops upside my head. ";
cowc[6] = "Da Da Da ....&lt;P&gt;&lt;FONT SIZE = 2&gt; Prize winning lyrics from Germany.&lt;/FONT&gt;";
cowc[7] = "You are not what you think. But what you think, you are.";
cowc[8] = "Another marvellous use of Bandwidth. Long live JavaScript Source Code 3000 !";
// End --&gt;
&lt;/SCRIPT&gt;
&lt;/HEAD&gt;

&lt;BODY BGCOLOR="white" onLoad="hereweare()"&gt;
&lt;A NAME = top&gt;
&lt;CENTER&gt;
&lt;A HREF="#top" onMouseOver="speak('aaaa',cowa, alastsaid); return true"&gt;
&lt;IMG SRC="1.gif" BORDER="0" HEIGHT="150" WIDTH="84"&gt;&lt;/A&gt;
&lt;A HREF="#top" onMouseOver="speak('bbbb',cowb, blastsaid); return true"&gt;
&lt;IMG SRC="2.gif" BORDER="0" HEIGHT="150" WIDTH="84"&gt;&gt;&lt;/A&gt;
&lt;A HREF="#top" onMouseOver="speak('cccc',cowc, clastsaid); return true"&gt;
&lt;IMG SRC="1.gif" BORDER="0" HEIGHT="150" WIDTH="74"&gt;&lt;/A&gt;
&lt;/CENTER&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;

 

&lt;!-- Script Size:  5.02 KB  --&gt;
</textarea></td></tr></form>

<tr><td BGCOLOR=yellow><font FACE="helvetica,arial,geneva"><b>JavaScript Source Code 3000:  Games:  Mad Cows (mad-cows-bottom.html)</b></td></tr>
<tr><td BGCOLOR=yellow ALIGN=CENTER>
<form NAME="copy3">

<DIV align="center">
<input type=button value="Highlight All" onClick="javascript:this.form.txt.focus();this.form.txt.select();">&nbsp;&nbsp;&nbsp;&nbsp;
<INPUT TYPE="text" NAME="total" VALUE="Script Size:  1.00 KB  " size="24">
</DIV>

<textarea NAME="txt" ROWS=20 COLS=75 WRAP=VIRTUAL>

&lt;!-- FOUR STEPS TO INSTALL MAD COWS:

   1.  Put first coding into a new document, save as mad-cows.html
   2.  Put next coding into a new document, save as mad-cows-top.html
   3.  Put last coding into a new document, save as mad-cows-bottom.html
   4.  Save cow images and upload them to your web site directory  --&gt;

&lt;!-- STEP THREE: Put coding into a new document, mad-cows-bottom.html  --&gt;

&lt;HTML&gt;
&lt;HEAD&gt;
&lt;TITLE&gt;Mad Cows&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY BGCOLOR="#000000" TEXT="#AAAACC" VLINK = "#A0A0A0" LINK = "#D0D0D0"&gt;
&lt;CENTER&gt;
&lt;H3&gt;"We're coming!  Please wait for all 3 of us to arrive. &lt;BR&gt;
Sorry for the delay but the Network's a bit crowded &lt;BR&gt;
and it is easy for us to get lost .... or distracted by &lt;BR&gt;
alt.cow.binaries that we meet along the way."&lt;/H3&gt;
&lt;/CENTER&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;

&lt;!-- STEP FOUR: Save the images to your web site directory  --&gt;

<!-- ../img/mad-cows/1.gif -->
<!-- ../img/mad-cows/2.gif -->

&lt;!-- Script Size:  1.00 KB  --&gt;
</textarea><br><font FACE="helvetica,arial,geneva"></font></td></tr>

</table>
</form>
</FONT>
</CENTER>


</center>
</body></html>